import axios, { Axios } from "axios";
const context = "/deviceservice";

/**
 * 获取 FdsBusinessClosingRuleset 分页列表
 */
export function getFdsBusinessClosingRulesetPagination(data: any) {
  return axios.get(`${context}/fdsBusinessClosingRuleset/pagination`, {
    params: data
  });
}

/**
 * 获取 FdsBusinessClosingRuleset 所有数据
 */
export function getFdsBusinessClosingRulesetAllList(data: any) {
  return axios.get(`${context}/fdsBusinessClosingRuleset/allList`, {
    params: data
  });
}

/**
 * 获取 FdsBusinessClosingRuleset 详情
 */
export function getFdsBusinessClosingRulesetDetailById(id: any) {
  return axios.get(`${context}/fdsBusinessClosingRuleset/${id}`, {
    params: { id }
  });
}

/**
 * 新增 FdsBusinessClosingRuleset
 */
export function addFdsBusinessClosingRuleset(data: any) {
  return axios.post(`${context}/fdsBusinessClosingRuleset`, data);
}

/**
 * 修改 FdsBusinessClosingRuleset
 */
export function updateFdsBusinessClosingRuleset(data: any) {
  return axios.put(`${context}/fdsBusinessClosingRuleset`, data);
}

/**
 * 删除 FdsBusinessClosingRuleset
 */
export function batchRemoveFdsBusinessClosingRuleset(data: any) {
  return axios.post(`${context}/fdsBusinessClosingRuleset/batchRemove`, data);
}
